package xyz.ddlnt.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * @author ZZULI_SE 210910
 * @data 2025/5/27 22:58
 */
@Schema( description = "评论VO")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PostCommentVO implements Serializable {

    @Schema(description = "评论id")
    private Long id;
    @Schema(description = "评论区域 id（帖子id/0层id）")
    private Long layerAreaId;


    @Schema(description = "评论者的 id")
    private Long userId;
    // --->
    @Schema(description = "评论者的昵称")
    private String username;
    @Schema(description = "评论者的头像")
    private String avatar;

    @Schema(description = "评论内容")
    private String commentContent;
    @Schema(description = "评论时间")
    private LocalDateTime commentTime;

    @Schema(description = "回复对象的用户 id（默认为试题id）")
    private Long replyToUserId;
    // --->
    @Schema(description = "回复用户的昵称")
    private String receiverUsername;

    @Schema(description = "0层的评论数量(1层始终为0)")
    private Integer commentCount;
    @Schema(description = "点赞数量")
    private Integer likeCount;
    @Schema(description = "点踩数量")
    private Integer dislikeCount;
}
